package com.beans;

import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.bean.Bean;
import java.awt.Image;

public class ListBean extends Bean {

  private Image list;
  private int listX;
  private int listY;
  private int listW;
  private int listH;
  private int listOldY;

  public void initBean(Magicanvas cvs) {
    this.list = getImage("/res/img/list.gif");
    trackerImage(this.list, cvs);
    this.listW = this.list.getWidth(cvs);
    this.listH = this.list.getHeight(cvs);
    this.listX = 202;
    this.listY = (614 - RoadBean.getRoadH() - 27 - this.listH);
    setListOldY(this.listY);
  }

  public Image getList() {
    return this.list;
  }

  public int getListX() {
    return this.listX;
  }

  public void setListX(int listX) {
    this.listX = listX;
  }

  public int getListY() {
    return this.listY;
  }

  public void setListY(int listY) {
    this.listY = listY;
  }

  public int getListW() {
    return this.listW;
  }

  public void setListW(int listW) {
    this.listW = listW;
  }

  public int getListH() {
    return this.listH;
  }

  public void setListH(int listH) {
    this.listH = listH;
  }

  public int getListOldY() {
    return this.listOldY;
  }

  public void setListOldY(int listOldY) {
    this.listOldY = listOldY;
  }
}
